{assign var=key value=$field.key}
{assign var=value value=$field.value}
<label for="f_{$field.name|escape}">{if isset($field.label)}{$field.label|escape}{else}{$field.name|escape}{/if}</label>

<select name="{$field.name}">
	{if isset($field.addBlank)}<option value="0">&nbsp;</option>{/if}
	{foreach from=$oList item=item}
		<option value="{$item->$key|escape}"{if $item->$key==$field.data} selected="selected"{/if}>{$item->$value|escape}</option>
	{/foreach} 
</select>